package com.example.fw;

import org.netbeans.jemmy.operators.JButtonOperator;
import org.netbeans.jemmy.operators.JDialogOperator;
import org.netbeans.jemmy.operators.JTextFieldOperator;

public class DialogHelper extends HelpersBase{
	
	public DialogHelper(ApplicationManager applicationManager) {
		super(applicationManager);
	}
		
	public DialogHelper clickButtonInDialog(JDialogOperator dialog, String buttonName) {
		new JButtonOperator(dialog, buttonName).push();
		return this;
	}
	
	public DialogHelper setTextInDialog(String foldername, JDialogOperator dialog) {
		new JTextFieldOperator(dialog).setText(foldername);
		return this;
	}
}
